
#ifndef _CFONT_H_
#define _CFONT_H_

#include <SDL_ttf.h>
#include "CTexture.h"
#pragma comment(lib, "SDL_ttf.lib")

class CFontManager
{
public:
	CFontManager(SDL_Surface** Screen);
	~CFontManager();

	void SetFontPath(std::string Path);
	void LoadFont(std::string FontName, std::string FontFile, Uint32 Weight);
	void ReleaseFont(std::string FontName);
	void ReleaseAllFonts();

	void PrintText(std::string Font, std::string Text, float x, float y,
					Uint32 red, Uint32 green, Uint32 blue,
					float scale = 1, float rotation = 0, Uint32 alpha = 255);

private:
	std::string m_FontPath;
	std::map<std::string, TTF_Font*> m_Fonts;
	SDL_Surface**	m_Screen;
};

#endif